import request from '@/utils/request'

// 查询人员管理列表
export function listPerson(query) {
    return request({
        url: '/campus/person/list',
        method: 'get',
        params: query
    })
}

// 查询人员管理详细
export function getPerson(id) {
    return request({
        url: '/campus/person/' + id,
        method: 'get'
    })
}

// 新增人员管理
export function addPerson(data) {
    return request({
        url: '/campus/person',
        method: 'post',
        data: data
    })
}

// 修改人员管理
export function updatePerson(data) {
    return request({
        url: '/campus/person',
        method: 'put',
        data: data
    })

}

// 删除人员管理
export function delPerson(id) {
    return request({
        url: '/campus/person/' + id,
        method: 'delete'
    })
}
export function addRecharge(data) {
    return request({
        url: '/campus/person/recharge',
        method: 'post',
        data: data
    })
}

export function editFaceFun(data) {
    return request({
        url: '/campus/person/editFace',
        method: 'post',
        data: data
    })
}
export function personUpload(data) {
    return request({
        url: '/campus/person/upload',
        method: 'post',
        data: data
    })
}

export function updatePersonGraduate(data) {
    return request({
        url: '/campus/person/updatePersonGraduateByCondition',
        method: 'post',
        data: data
    })
}

export function batchUpdatePersonGraduate(data) {
    return request({
        url: '/campus/person/batchUpdatePersonGraduate',
        method: 'post',
        data: data
    })
}
export function updatePersonGraduateByCondition(data) {
    return request({
        url: '/campus/person/updatePersonGraduateByCondition',
        method: 'post',
        data: data
    })
}
export function queryPersonsByCondition(data) {
    return request({
        url: '/campus/person/queryPersonsByCondition',
        method: 'post',
        data: data
    })
}